<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<div class="widget-header">
	<i class="icon-th-list"></i>
	<h3>거래처 정보</h3>
</div>
<form:form modelAttribute="CompanyModel" method="post" onsubmit="return form.formChk(); return false;">
<table class="table table-striped table-bordered">
	<tbody>
		<tr>
			<td>대표건물</td>
			<td colspan="3">
				<c:forEach items="${meansureTargetList}" var="item" varStatus="loop">
				<label class="radio inline" for="forMeansureTarget${loop.index }">
					<input type="radio" id="forMeansureTarget${loop.index }" name="radMeansureTarget" value="${item.code}" />
					${item.name}
                </label>
				</c:forEach>
			</td>
		</tr>
		<tr>
			<td>사업자번호</td>
			<td colspan="3">
				<input type="text"/>
			</td>
		</tr>
		<tr>
			<td>업태</td>
			<td>
				<input type="text"/>
			</td>
			<td>종목</td>
			<td>
				<input type="text"/>
			</td>
		</tr>
		<tr>
			<td>사업자명</td>
			<td>
				<input type="text"/>
			</td>
			<td>대표자명</td>
			<td>
				<input type="text"/>
			</td>
		</tr>
		<tr>
			<td>사업장주소</td>
			<td colspan="3">
				<input type="text"/>
			</td>
		</tr>
	</tbody>
</table>
<div class="control-group">
<div class="clearfix">
	<h4 class="float-left box-title">빌딩</h4>
	<div class="btn-box txt-right float-right">
		<button type="button" class="btn btn-info buildingEditForm"><i class="icon-pencil icon-txt"></i>추가</button>
	</div>
</div>
<table class="table table-striped table-bordered">
	<thead>
		<tr>
			<th>NO</th>
			<th>구분</th>
			<th>빌딩명</th>
			<th>구주소</th>
			<th>신주소</th>
			<th>담당자</th>
			<th>핸드폰</th>
			<th class="td-actions"> </th>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td>1</td>
			<td>대표</td>
			<td>빌딩명</td>
			<td>구주소</td>
			<td>신주소</td>
			<td>담당자</td>
			<td>핸드폰</td>
			<td class="td-actions">
				<a href="javascript:;" class="btn btn-small btn-success"><i class="btn-icon-only icon-ok"></i></a>
			</td>
		</tr>
	</tbody>
</table><!-- /widget-content -->
</div>

<div class="btn-box txt-right">
	<button type="reset" class="btn btn-info"><i class="icon-refresh icon-txt"></i>새로고침</button>
	<button type="button" class="btn btn-primary"><i class="icon-save icon-txt"></i>저장</button>
	<a href="<c:url value='/company/list.do'/>" class="btn"><i class="icon-list icon-txt"></i>목록</a>
</div>
</form:form>
<c:import url="../content/company/buildingEditForm.jsp"></c:import>
<script type="text/javascript" src="<c:url value='/js/content/company/form.js'/>"></script>